package cn.exrick.xboot.modules.source.entity;

import cn.exrick.xboot.base.XbootBaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author zjl
 * @description TODO
 * @time: 2022/4/15 9:18
 */
@Data
@Accessors(chain = true)
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "t_student_level")
@TableName("t_student_level")
@ApiModel(value = "小组等级")
public class StudentLevel extends XbootBaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "小组id")
    @NotNull(message = "不能为空")
    private Integer gid;

    @ApiModelProperty(value = "项目名称")
    @NotNull(message = "不能为空")
    private String pName;

    @ApiModelProperty(value = "小组等级")
    @NotNull(message = "不能为空")
    private String gLevel;

    @ApiModelProperty(value = "姓名")
    @NotBlank(message = "不能为空")
    private String name;

    @ApiModelProperty(value = "学生分数")
    @NotNull(message = "不能为空")
    private Integer sScore;

    @ApiModelProperty(value = "角色")
    private String role;

    @ApiModelProperty(value = "学生等级")
    @NotBlank(message = "不能为空")
    private String sLevel;

}
